package com.laizhenghua.order.service.impl;

import com.laizhenghua.commons.entity.CommonResult;
import com.laizhenghua.commons.entity.PaymentEntity;
import com.laizhenghua.commons.utils.R;
import com.laizhenghua.order.service.PaymentFeignService;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @date: 2022/2/14 22:35
 */
@Component(value = "paymentFallbackServiceImpl")
public class PaymentFallbackServiceImpl implements PaymentFeignService {

    @Override
    public R testOk() {
        return R.error(1000, "系统正在努力处理，请稍等...").put("methodName", "testOk");
    }

    @Override
    public R testError() {
        return R.error(1000, "系统正在努力处理，请稍等...").put("methodName", "testError");
    }
}
